// Log Manager realization
// (c) jimon game studio

#ifndef JEH_CLOGMANAGER
#define JEH_CLOGMANAGER

#include "ILogManager.h"

#include <fstream>

namespace je
{
	namespace core
	{
		//! Log Manager interface
		class CLogManager:public je::core::ILogManager
		{
		private:
			std::ofstream * OutFile;
			jeLogFunction LogFunction;
		public:
			//! Constructor
			CLogManager();

			//! Destructor
			~CLogManager();

			//! Add String to log
			void AddLog(const jeStringc & Log,LogMessageLevels WarningLevel);

			//! Set Log Callback
			void SetLogCallback(const jeLogFunction & Callback);
		};
	}
}

#endif
